#include<bits/stdc++.h>
int n,m,ans;
int a[1000000];
int b[1000000];
int a[100005],b[100005],c[100005],x[10];
char c[100005][65];
int ans[100005];
int main(){
freopen("arena.in","r",stdin);
freopen("arena.out","w",stdout);
cin>>n>>m;
for(int i=1;i<=n;i++){

    cin>>a[i];
}
for(int j=1;j<=m;j++){
    cin>>c[i];
}
int mx=0,cur=1;
while(cur<n){
    cur*=2;
    mx++;
}
for(int i=1;i<=mx;i++){
    for(int j=1;j<=(1<<mx);j++){
        cin>>x[i];
    }
}
for(int j=1;j<=i;j++){
}
cout<<ans;
return 0;
}
